xen: introduce arch_grant_(un)map_page_identity
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 1 Aug 2014 14:45:24 +0000 (15:45 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 9 Sep 2014 10:47:08 +0000 (11:47 +0100)
commite25a5f4d8cf3b55718048abdd21c7d0de64ae54c
treed65f29ccaab1e0f8e5559dc9e365eb27d4133fcf
parent808b34d84544fca0b79985bbefc450ae399dd340
xen: introduce arch_grant_(un)map_page_identity

Introduce two arch specific functions to create a new p2m mapping of
granted pages at pfn == mfn.
We don't an x86 implementation as these functions should never be
compiled on x86 (they are called from an if (0) statement).

Base the implementation of arm_smmu_(un)map_page on
arch_grant_(un)map_page_identity.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/arm/p2m.c
xen/drivers/passthrough/arm/smmu.c
xen/include/asm-arm/p2m.h
xen/include/asm-x86/p2m.h